import request from '@/utils/request'

// 查询资讯审核列表
export function listReview(query) {
  return request({
    url: '/review/review/list',
    method: 'get',
    params: query
  })
}

// 查询资讯审核详细
export function getReview(articleId) {
  return request({
    url: '/review/review/' + articleId,
    method: 'get'
  })
}

// 修改资讯审核
export function updateReview(data) {
  return request({
    url: '/review/review',
    method: 'put',
    data: data
  })
}

// 新增栏目相关API调用
export function listCategory() {
  return request({
    url: '/content/category/list',
    method: 'get'
  })
}